package com.oilsection.demo.controller.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

@Data
public class ZrEventImportReq {
    private String kqName;

    private String zrdName;

    private String location;

    private Double quantity;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date zrTime;

    public String getXPoint() {
        return location.split(",")[1];
    }

    public String getYPoint() {
        return location.split(",")[0];
    }
}
